package com.ecust.ml.cardriving.model;

import java.util.ArrayList;
import java.util.List;

public class Road {
	
	private int index;

	/**
	 * 道路上的车辆
	 */
	private List<Car> cars = new ArrayList<Car>();
	
	public Road(int index) {
		this.index = index;
	}
	
	/**
	 * 检测某车道100(Car.CAR_RUN_POSITION)位置是否有冲突(测试小车外其他车辆)
	 * @param lane 车道编号
	 * @return
	 */
	public Collision findCollision() {
		//cars.key
		return null;
	}

	public List<Car> getCars() {
		return cars;
	}

	public void setCars(List<Car> cars) {
		this.cars = cars;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}
	
}
